package test

import java.io.File

import org.apache.commons.io.FileUtils

object test01 {

  /**
    * 转译html编码
    * @param args
    */

  def main(args: Array[String]): Unit = {

    new File("D:\\转录组软件官网\\tools").listFiles.foreach{x=>
      x.listFiles.filter(_.getName.takeRight(5) == ".html").foreach{y=>
        println(y.getAbsolutePath)
        val b = FileUtils.readFileToString(y,"GB2312")
        FileUtils.writeStringToFile(y,b,"UTF-8")
      }
    }

  }
}
